package com.qiujie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qiujie.entity.Leave;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


public interface LeaveMapper extends BaseMapper<Leave> {
    @Select("SELECT * FROM att_leave WHERE type_num = #{typeCode} AND is_deleted = 0 LIMIT 1")
    Leave findValidByTypeCode(@Param("typeCode") Integer typeCode);
}
